﻿using System;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace StoryCardLogic.Test
{
    [TestClass]
    public class MyFileTests
    {
        private const string RandomText = "random text";

        [TestMethod]
        public void LoadSaveTestCreatedFile()
        {
            var fileName = Path.GetTempFileName();

            new MyFile().SaveToFile(fileName, RandomText);
            var fromFile = new MyFile().ReadFromFile(fileName);

            Assert.AreEqual(RandomText, fromFile);
        }


    }
}
